<?php 
defined('_JEXEC') or die;
require_once(JPATH_SITE.DS.'components'.DS.'com_content'.DS.'helpers'.DS.'route.php');
?>

<script type="text/javascript" src="<?php echo $this->baseurl ?>/js/jquery.validate.js"></script>
<script type="text/javascript">
$().ready(function() {
    // validate the comment form when it is submitted
    $("#contact").validate();
</script>
<div class="content">
    <div class="swap_contact">
        <div><span id="ctl00_ContentPlaceHolder1_lblGioiThieuLH"><?php echo JText::_('CONTACTTITLE')?>:</span></div>   
        <form action="" id="contact" name="contact">
        <div class="from_lienhe">
            <div class="col_left"><span id="ctl00_ContentPlaceHolder1_lblHoTen"><?php echo JText::_('FULLNAME')?>:</span><span style="color:red">*</span></div>
            <div class="col_right"><input required name="name" type="text" id="name"></div>
            <div class="col_left"><span id="cbemail"><?php echo JText::_('EMAIL')?>:</span><span style="color:red">*</span></div>
            <div class="col_right"><input required type="email"  name="email" type="text" id="email"></div>
            <div class="col_left"><span id="ctl00_ContentPlaceHolder1_lblDienThoai"><?php echo JText::_('PHONE')?>:</span><span style="color:red">*</span></div>
            <div class="col_right"><input required name="phone" type="text" id="phone"></div>
            <div class="col_left"><span id="ctl00_ContentPlaceHolder1_lblNoiCongTac"><?php echo JText::_('COMPANY')?>:</span></div>
            <div class="col_right"><input name="company" type="text" id="company"></div>
            <div class="col_left"><span id="ctl00_ContentPlaceHolder1_lblDiaChi"><?php echo JText::_('ADDRESS')?>:</span></div>
            <div class="col_right"><input name="address" type="text" id="address"></div>
            <div class="col_left"><span id="ctl00_ContentPlaceHolder1_lblChuDe"><?php echo JText::_('SUBJECT')?>:</span></div>
            <div class="col_right"><input name="subject" type="text" id="subject"></div>
            <div class="col_left"><span id="ctl00_ContentPlaceHolder1_lblNoiDung"><?php echo JText::_('MESSAGE')?>:</span><span style="color:red">*</span></div>
            <div class="col_right_noidung"><textarea required name="message" rows="2" cols="20" id="message" style="border-width:0px;font-family:verdana;font-size:12px;height:291px;width:351px;"></textarea></div>
            <div class="button">
            <input type="submit" name="submit" value="<?php echo JText::_('SEND')?>" id="submit" style="width:70px;">
            <input type="reset" name="reset" value="<?php echo JText::_('CANCEL')?>" id="reset" style="width:70px;"></div>
        </div>
        </form>
        <div class="info_office">
            <?php 
              $db = JFactory::getDbo();
            $sql = "Select * from #__content where catid = 82 and state=1 and id = 91 order by id asc";
            $db->setQuery($sql);
            $db->query();
            $result = $db->loadObject();
            echo $result->introtext;
            ?> 
        </div>
        </div>
    </div>